package com.example.designpattern.test.testProtected.p2;

import com.example.designpattern.test.testProtected.p1.Father;
import com.example.designpattern.test.testProtected.p1.Son1;

public class Son3 extends Father {
    public static void main(String[] args) throws CloneNotSupportedException {
        Son3 son3 = new Son3();
        son3.f();
        Son1 son1 = new Son1();
//        son1.f();

        Sun2 sun2 = new Sun2();
        sun2.f();
    }
}
